/**************************************************************************************** 
* ÎÄŒþÃû£ºUSER_CFG.h 
****************************************************************************************/ 
#ifndef __USER_CFG_H  
#define __USER_CFG_H  
 
#ifndef TRUE 
#define TRUE  1 
#endif 
 
#ifndef FALSE 
#define FALSE 0 
#endif 
 
#define LIFT_0C_CFG_FILE   "/mnt/nand1-2/LIFT/lift_0c.csv" 
#define LIFT_90C_CFG_FILE  "/mnt/nand1-2/LIFT/lift_90c.csv" 
#define LIFT_180C_CFG_FILE "/mnt/nand1-2/LIFT/lift_180c.csv" 
#define LIFT_270C_CFG_FILE "/mnt/nand1-2/LIFT/lift_270c.csv" 
 
#define LIFT_FLRMAP_CFG_FILE "/mnt/nand1-2/LIFT/flrmap.csv" 
#define LIFT_FLRMAP_T2_CFG_FILE "/mnt/nand1-2/LIFT/flrmap_t2.csv" 
   
#define Tags_FILE_HEAD     "CFG_START"    // ±êÖŸÍ•ÎÄŒþ 
#define Tags_FILE_END      "CFG_END"      // ±êÖŸÎÄŒþœáÊø 
#define Tags_DOT           "," 
#define Tags_LINE_END      "\r\n" 
// LCD PARA   
#define Tags_LCD_XMAX     "LCD_XMAX" 
#define Tags_LCD_YMAX     "LCD_YMAX" 
#define Tags_LCD_CLK      "LCD_CLK" 
// DIR REGION   
#define Tags_REG_DIR_SX   "REG_DIR.SX" 
#define Tags_REG_DIR_SY   "REG_DIR.SY" 
#define Tags_REG_DIR_XLEN "REG_DIR.XLEN" 
#define Tags_REG_DIR_YLEN "REG_DIR.YLEN" 
// FLR REGION   
#define Tags_REG_FLR_SX   "REG_FLR.SX" 
#define Tags_REG_FLR_SY   "REG_FLR.SY" 
#define Tags_REG_FLR_XLEN "REG_FLR.XLEN" 
#define Tags_REG_FLR_YLEN "REG_FLR.YLEN" 
// TIME REGION 
#define Tags_REG_TIME_SX   "REG_TIME.SX" 
#define Tags_REG_TIME_SY   "REG_TIME.SY" 
#define Tags_REG_TIME_XLEN "REG_TIME.XLEN" 
#define Tags_REG_TIME_YLEN "REG_TIME.YLEN" 
// DAY REGION 
#define Tags_REG_DAY_SX   "REG_DAY.SX" 
#define Tags_REG_DAY_SY   "REG_DAY.SY" 
#define Tags_REG_DAY_XLEN "REG_DAY.XLEN" 
#define Tags_REG_DAY_YLEN "REG_DAY.YLEN" 
// WEEK REGION 
#define Tags_REG_WEEK_SX   "REG_WEEK.SX" 
#define Tags_REG_WEEK_SY   "REG_WEEK.SY" 
#define Tags_REG_WEEK_XLEN "REG_WEEK.XLEN" 
#define Tags_REG_WEEK_YLEN "REG_WEEK.YLEN"   
// ALARM REGION 
#define Tags_REG_ALARM_SX   "REG_ALARM.SX" 
#define Tags_REG_ALARM_SY   "REG_ALARM.SY" 
#define Tags_REG_ALARM_XLEN "REG_ALARM.XLEN" 
#define Tags_REG_ALARM_YLEN "REG_ALARM.YLEN" 
// BKGND REGION 
#define Tags_REG_BKGND_SX   "REG_BKGND.SX" 
#define Tags_REG_BKGND_SY   "REG_BKGND.SY" 
#define Tags_REG_BKGND_XLEN "REG_BKGND.XLEN" 
#define Tags_REG_BKGND_YLEN "REG_BKGND.YLEN" 
#define Tags_REG_BKGND_WTIME "REG_BKGND.WTIME" 
#define Tags_REG_BKGND_EFFECT "REG_BKGND.EFFECT" 
// LOGO REGION 
#define Tags_REG_LOGO_SX   "REG_LOGO.SX" 
#define Tags_REG_LOGO_SY   "REG_LOGO.SY" 
#define Tags_REG_LOGO_XLEN "REG_LOGO.XLEN" 
#define Tags_REG_LOGO_YLEN "REG_LOGO.YLEN"   
// OTHERS REGION   
#define Tags_REG_OTHER_SX   "REG_OTHER.SX" 
#define Tags_REG_OTHER_SY   "REG_OTHER.SY" 
#define Tags_REG_OTHER_XLEN "REG_OTHER.XLEN" 
#define Tags_REG_OTHER_YLEN "REG_OTHER.YLEN" 
// VIDEO REGION 
#define Tags_REG_VIDEO_SX   "REG_VIDEO.SX" 
#define Tags_REG_VIDEO_SY   "REG_VIDEO.SY" 
#define Tags_REG_VIDEO_XLEN "REG_VIDEO.XLEN" 
#define Tags_REG_VIDEO_YLEN "REG_VIDEO.YLEN" 
// TXT REGION 
#define Tags_REG_TXT_SX     "REG_TXT.SX" 
#define Tags_REG_TXT_SY     "REG_TXT.SY" 
#define Tags_REG_TXT_XLEN   "REG_TXT.XLEN" 
#define Tags_REG_TXT_YLEN   "REG_TXT.YLEN"   
#define Tags_REG_TXT_MODE   "REG_TXT.MODE"   
#define Tags_REG_TXT_SPEED  "REG_TXT.SPEED"   
#define Tags_REG_TXT_COLOR  "REG_TXT.COLOR"     
#define Tags_REG_TXT_FONT   "REG_TXT.FONT"  
   
// add for dual floor 
// DIR REGION   
#define Tags_REG_DIR_T2_SX   "REG_DIR_T2.SX" 
#define Tags_REG_DIR_T2_SY   "REG_DIR_T2.SY" 
#define Tags_REG_DIR_T2_XLEN "REG_DIR_T2.XLEN" 
#define Tags_REG_DIR_T2_YLEN "REG_DIR_T2.YLEN" 
// FLR REGION   
#define Tags_REG_FLR_T2_SX   "REG_FLR_T2.SX" 
#define Tags_REG_FLR_T2_SY   "REG_FLR_T2.SY" 
#define Tags_REG_FLR_T2_XLEN "REG_FLR_T2.XLEN" 
#define Tags_REG_FLR_T2_YLEN "REG_FLR_T2.YLEN"   
// ALARM REGION 
#define Tags_REG_ALARM_T2_SX   "REG_ALARM_T2.SX" 
#define Tags_REG_ALARM_T2_SY   "REG_ALARM_T2.SY" 
#define Tags_REG_ALARM_T2_XLEN "REG_ALARM_T2.XLEN" 
#define Tags_REG_ALARM_T2_YLEN "REG_ALARM_T2.YLEN"   
 
//Ä¿µÄ²ãÏÔÊŸÇøÓò 
#define Tags_REG_DES_SX   "REG_DES.SX" 
#define Tags_REG_DES_SY   "REG_DES.SY" 
#define Tags_REG_DES_XLEN "REG_DES.XLEN" 
#define Tags_REG_DES_YLEN "REG_DES.YLEN" 
 
#define Tags_REG_FLOOR_SPEED "REG_FLOOR.SPEED" 
   
#pragma pack(1)   
typedef struct{ 
  const char *plk_var; 
  unsigned int *pvar; 
}_struct_link_var; 
 
typedef enum{                   // µçÌÝºáÏÔ/ÊúÏÔ 
  dmode_0C = 0, 
  dmode_90C = 1, 
  dmode_180C = 2, 
  dmode_270C = 3, 
  dmode_error = 4,
}_enum_DMODE; 
 
typedef struct 
{ 
	unsigned int s_x; 
	unsigned int s_y; 
	unsigned int x_len; 
	unsigned int y_len; 
} REGION; 
 
extern REGION G_REG_DIR; 
extern REGION G_REG_FLR; 
extern REGION G_REG_TIME; 
extern REGION G_REG_DAY; 
extern REGION G_REG_WEEK; 
extern REGION G_REG_ALARM; 
extern REGION G_REG_BKGND; 
extern REGION G_REG_LOGO; 
extern REGION G_REG_OTHER; 
extern REGION G_REG_VIDEO; 
extern REGION G_REG_TXT; 
extern unsigned int BKGND_wait; 
extern unsigned int BKGND_effect; 
extern REGION G_REG_DIR_T2; 
extern REGION G_REG_FLR_T2; 
extern REGION G_REG_ALARM_T2;

extern unsigned int G_LFTTXT_txt_vfmode; 
extern unsigned int G_LFTTXT_vf_speed; 
extern unsigned int G_LFTTXT_txt_color;
extern unsigned int G_LFTTXT_font_id; 
 
 
/********************************************************************************************************* 
** Function name:           Nand2GetSysCfg 
** Descriptions:            »ñÈ¡ÏµÍ³ÅäÖÃÎÄŒþ 
** input parameters:        none 
** Output parameters:       none 
** Returned value:          •µ»Ø¶ÔÓŠµÄÅäÖÃœÇ¶È 
*********************************************************************************************************/ 
extern _enum_DMODE GetSysCfg(void); 
extern unsigned char CheckFileExist(char * filename); 
 
 
#endif 
/********************************************************************************************************* 
  END FILE  
*********************************************************************************************************/
